let headline='# headline'
let headline_reg = /^(?<level>#+)\s(?<text>.*)$/
console.log(headline.match(headline_reg))